﻿// Open Source: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Project: YoProgramo.NET (http://code.google.com/p/yoprogramo/)
// Autor: Fabian Figueredo (info@fabianfigueredo.com.ar)
// Blog: blog.yoprogramo.net

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Validator.Engine;

namespace YoProgramo.Infrastructure.Tools.NHValidator
{
    public class NHValidatorWrapper<TEntity> {
        private ValidatorEngine _ValidatorEngine;
        public NHValidatorWrapper()
        {
            _ValidatorEngine = new ValidatorEngine();
        }

        public InvalidValue[] Validate(TEntity obj)
        {
            return _ValidatorEngine.Validate(obj);
        }
    }
}